package com.qdu.service.impl;

import java.math.BigInteger;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.qdu.entity.Bussiness;
import com.qdu.mapper.BussinessMapper;
import com.qdu.service.BussinessService;

@Service
public class BussinessServiceImpl implements BussinessService{

	@Autowired
	BussinessMapper bussinessMapper;
	@Override
	public Bussiness getBussinessById(BigInteger bid) {
		Bussiness b=bussinessMapper.getOneById(bid);
		return b;
	}
	
	@Transactional
	@Override
	public int insert(Bussiness buss) {
		
		return bussinessMapper.insertBuss(buss);
	}

}
